package com.zhongli.devplatform.service.imp.common;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongli.devplatform.dto.sys.MenuDTO;
import com.zhongli.devplatform.po.user.ReadMenuPO;
import com.zhongli.devplatform.vo.sys.MenuVO;

import java.util.List;

/**
* @author  WuXiCheng
* @date  2020/7/23 10:12
* @version 1.0
*/
public interface ReadMenuService extends IService<ReadMenuPO>{

    final static String CACHE_KEY = "_menu";

    List<MenuVO> list(Integer roleId);

    void putCache();

    void save(MenuDTO menuDTO);

    void delete(Integer id);

    List<Integer> listMenuIdByRole(Integer roleId);

}
